import request from '@/utils/request'

// 创建弹幕列
export function createDataInfoone(data) {
  return request({
    url: '/system/data-infoone/create',
    method: 'post',
    data: data
  })
}

// 更新弹幕列
export function updateDataInfoone(data) {
  return request({
    url: '/system/data-infoone/update',
    method: 'put',
    data: data
  })
}

// 删除弹幕列
export function deleteDataInfoone(id) {
  return request({
    url: '/system/data-infoone/delete?id=' + id,
    method: 'delete'
  })
}

// 获得弹幕列
export function getDataInfoone(id) {
  return request({
    url: '/system/data-infoone/get?id=' + id,
    method: 'get'
  })
}

// 获得弹幕列分页
export function getDataInfoonePage(params) {
  return request({
    url: '/system/data-infoone/page1',
    method: 'get',
    params
  })
}
// 导出弹幕列 Excel
export function exportDataInfooneExcel(params) {
  return request({
    url: '/system/data-infoone/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}
